const Layout = () => import('@/layout/index.vue');

const chartsRouter = {
  path: '/user',
  component: Layout,
  redirect: 'noRedirect',
  name: 'User',
  meta: {
    title: '用户',
    icon: 'list'
  },
  children: [
    {
      path: 'list',
      component: () => import('@/views/user/list.vue'),
      name: 'UserList',
      meta: { title: '用户列表' }
    },
    {
      path: 'vertify',
      component: () => import('@/views/user/vertify.vue'),
      name: 'UserVertify',
      meta: { title: '核销员' }
    },
    {
      path: 'order',
      component: () => import('@/views/user/order.vue'),
      name: 'UserOrder',
      meta: { title: '订单列表' }
    },
    {
      path: 'poem',
      component: () => import('@/views/user/poem.vue'),
      name: 'UserPoem',
      meta: { title: '对诗列表' }
    },
    {
      path: 'pray',
      component: () => import('@/views/user/pray.vue'),
      name: 'UserPray',
      meta: { title: '许愿列表' }
    },
  ]
};

export default chartsRouter;
